package com.youlu.campus.entity.course.dto;

import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;

/**
 * @author : [dengbo]
 * @className : PageInfo
 * @description : [描述说明该类的功能]
 * @createTime : [2022/5/20 22:39]
 */
@Data
public class PageInfo {
    @Min(value = 1, message = "页数最小为1")
    private Integer page = 1;
    @Max(value = 200, message = "每页数量最大不能超过200")
    @Min(value = 1, message = "每页数量最小不能小于1")
    private Integer pageSize = 10;
}
